{{include template('public/header','home')}}
 <link href="{{STATIC_URL}}/home/vote.css?v{{random(4)}}" rel="stylesheet">
<ul id="breadcrumb" name="breadcrumb" class="breadcrumb mavbar-breadcrumb">
    <li><a href="/"><i class="fa fa-home fa-fw"></i>首页</a></li>
    <li class="active"><a href="/vote/index/lists">投票</a></li>
</ul>
<div class="vote_tp">
    <div class="page_content">
        <form name="myform" id="myform"  action="/vote/index/post/?subjectid={{$vote_subject.subjectid}}&siteid={{$vote_subject.siteid}}" method="post">
            <input type="hidden" name="subjectid" value="{{$vote_subject.subjectid}}">
            <div class="vote_result">
                <div class="c_box wrap">
                    <table width="100%" class="table" >
                      <caption><h5 style="float:left;">标题: {{$vote_subject.subject}} </h5><span style="float:right;"> 总票数：{{$vote_data['total']}}</span></caption>
                        {{$i=0}}
                        {{foreach $vote_options as $item}}
                        <tr>
                            <th style="width: 20px;">{{$i++}}</th>
                            <td style="width: 50px;"><input type="{{if $vote_subject.ischeckbox=='0'}}radio{{else}}checkbox{{/if}}" name="radio[]" id="radio" value="{{$item.optionid}}" {{$check_status}} /></td>
                            <td style="width: 800px;">{{$item.option}}</td>
                            <td style="width: 100px;"><font color=red>{{$item.num}}</font> 票</td>
                        </tr>
                        {{/foreach}}
                    </table>
                </div>
            </div>
            <div class="shuru_btn" style="text-align: center;">
                 <input type='submit' name='dosubmit' class='btn  btn-default' value='投票' style="{{$display}}"/>
                <a href="/vote/index/result/?subjectid={{$vote_subject.subjectid}}&siteid={{$vote_subject.siteid}}">[查看投票结果] </a></div>
        </form>
        <div class="vote_listt">

        </div>
    </div>

    <div class="clearfix"></div>
</div>
{{include template('public/footer','home')}}
